
import { takeLatest } from 'redux-saga/effects';
import { getCityList, getWeatherInfo, getGeographicalLocation } from './takes/home'
import { ActionsEnum } from './enum'


export default function* rootSaga() {
    yield takeLatest(ActionsEnum.获取城市列表, getCityList);
    yield takeLatest(ActionsEnum.获取天气信息, getWeatherInfo);
    yield takeLatest(ActionsEnum.获取地理位置, getGeographicalLocation);
}